Derivative of trigonometric function cosine